package com.cdc.webview;

import android.webkit.JavascriptInterface;
import android.webkit.WebView;
import android.widget.Toast;

public class Js {
    private WebView webView;
    public Js(WebView webView) {
        this.webView = webView;
    }
    @JavascriptInterface
    public void showA(String intentid_str) {
        Toast.makeText(webView.getContext(),intentid_str,Toast.LENGTH_LONG).show();
    }

    @JavascriptInterface
    public void showB(String intentid_str) {
        Toast.makeText(webView.getContext(),intentid_str,Toast.LENGTH_LONG).show();
    }
}
